Kill Counter

 

Here you get a script which will count all frags you did.

 

First of all every enemy unit must have this commandline in his init line

 

this AddEventHandler ["killed",{_this exec "counter.sqs"}]

 

AddEventHandler This unit gets an eventhandler

killed If the Soldier dies, a script will run

counter.sqs and this ist the script which will run if the soldier dies

 

And this little command must be in the init line of the player...

 

x=0

 

...because the variable x must be declared as zero

 

Now the little script  (counter.sqs):

 

x=x+1

 

Looks a little bit tiny but thats all.

 

 

Now to call the current kill count you must write the next script (countlevel.sqs):

 

hint format ["%1",x]

 

And one more command which must also be in the init line of the player

 

ID = Player AddAction ["Call FRAG Count","countlevel.sqs"]